body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.dashboard-title {
    font-weight: 700;
    color: #1976d2;
    text-align: center;
    padding: 28px 0 18px 0;
    margin-top: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    letter-spacing: 2px;
    font-size: 2.1rem;
    background: linear-gradient(90deg, #e3f2fd 0%, #fff 100%);
    border-radius: 12px 12px 0 0;
}

.filter-box {
    padding: 22px 18px 18px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.07);
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.filter-box:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
}

.filter-box select,
.filter-box input {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(25, 118, 210, 0.04);
    font-size: 1rem;
}

.filter-box button {
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.filter-box button:hover {
    background-color: #1565c0;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.13);
    transform: translateY(-2px) scale(1.03);
}

.btn-outline-secondary {
    border: 1px solid #1976d2 !important;
    color: #1976d2 !important;
    background: #f5faff !important;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-secondary:hover {
    background: #1976d2 !important;
    color: #fff !important;
}

#tableSection {
    max-width: 100%;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.07);
    padding: 22px 18px 18px 18px;
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

#tableSection:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
}

.table-responsive {
    width: 100%;
    display: block;
}

table, th, td {
    border: 1px solid #e0e0e0;
}

th, td, .table th, .table td {
    padding: 13px 8px;
    text-align: center !important;
    vertical-align: middle !important;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: #f5faff;
    color: #1976d2;
    font-weight: 700;
    font-size: 1.08rem;
    text-align: center;
}

/* 让数字列更紧凑 */
td:nth-child(3), td:nth-child(4) {
    width: 90px;
    text-align: center;
}

tbody tr:hover {
    background-color: #e3f2fd;
    transition: background 0.2s;
}

.pagination {
    --bs-pagination-color: #1976d2;
    --bs-pagination-active-bg: #1976d2;
    --bs-pagination-active-border-color: #1976d2;
    --bs-pagination-hover-bg: #e3f2fd;
    --bs-pagination-hover-color: #1976d2;
    font-size: 1.05rem;
}

.pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
}

.chart-container {
    height: 400px;
    margin: 40px 0 0 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.07);
    padding: 22px 18px 18px 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chart-container:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
}

#trendTitle {
    color: #1976d2;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

/* Loader styles */
.loader {
    text-align: center;
    padding: 20px;
    display: none;
}

.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1976d2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#noDataTip {
    margin: 30px 0 0 0;
    font-size: 1.15rem;
    border-radius: 8px;
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.07);
}

.container.main-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

/* 响应式优化 */
@media (max-width: 1000px) {
    #tableSection {
        max-width: 100%;
        padding-left: 4px;
        padding-right: 4px;
    }
    .container.main-content {
        max-width: 100%;
        padding-left: 4px;
        padding-right: 4px;
    }
}